package util

import "github.com/cosiner/zerver"

type (
	HandlerBase struct{}
)

func (*HandlerBase) Init(*zerver.Server) error { return nil }

func (*HandlerBase) Destroy() {}

func (*HandlerBase) Get(_ zerver.Request, reply zerver.Response) {
	reply.ReportForbidden()
}

func (*HandlerBase) Post(_ zerver.Request, reply zerver.Response) {
	reply.ReportForbidden()
}

func (*HandlerBase) Delete(_ zerver.Request, reply zerver.Response) {
	reply.ReportForbidden()
}

func (*HandlerBase) Put(_ zerver.Request, reply zerver.Response) {
	reply.ReportForbidden()
}

func (*HandlerBase) Patch(_ zerver.Request, reply zerver.Response) {
	reply.ReportForbidden()
}
